package com.more.offer.designpatterns.singleton.eagerinitialization;

/**
 * @author pinoc
 * @date 2021/10/21
 * @description 饿汉模式
 */
public class SingletonModel {

	private static  final SingletonModel singletonModel = new SingletonModel();

	private SingletonModel() {
	}

	public SingletonModel getInstance() {
		return singletonModel;
	}

	public void testMethod() {
		System.out.println("singleton model...");
	}
}
